<template>
    <div class="consulting-box">
        <div class="consulting-input-group">
            <div class="consulting-input-row">
                <div class="consulting-input-item">
                    <div class="consulting-input">
                        <select class="f2" v-model="search.type">
                            <option value="0">咨询类型</option>
                        </select>
                    </div>
                </div>
                <div class="consulting-input-item f2">
                    <div class="consulting-input">
                        <input type="text" placeholder="请输入您的手机号">
                    </div>
                </div>
                <div class="consulting-button base-button f1" @click="jumpContactUs">
                    {{ $t('index.consulting.button') }}
                </div>
            </div>

        </div>
        <div class="consulting-main-box">
            <div class="consulting-main-box-content">
                <div class="consulting-main-left-box">
                    <div class="consulting-main-left-slogan f1"> {{ $t('index.consulting.slogan') }}</div>
                    <div class="consulting-main-left-phone f1" style="margin-bottom: 5%;">{{ $t('index.consulting.phone') }}{{ phone }}</div>
                    <div class="consulting-tag">
                        <div class="tag-item">
                            <div class="tag-btn base-button f2" @click="jumpContactUs">{{
                                    $t('index.consulting.tag.one')
                                }}
                            </div>
                            <div class="tag-helper f2">{{ $t('index.consulting.tag.oneHelper') }}</div>
                        </div>
                        <!-- <div class="tag-item"></div> -->
                        <div class="tag-item">
                            <div class="tag-btn base-button f2" @click="jumpContactUs">{{
                                    $t('index.consulting.tag.tow')
                                }}
                            </div>
                            <div class="tag-helper f2">{{ $t('index.consulting.tag.towHelper') }}</div>
                        </div>
                        <!-- <div class="tag-item"></div> -->
                    </div>
                </div>
                <div class="consulting-main-right-box">
                    <div class="qrcode" :style="{background:`url('${qrcode}')`,backgroundSize: 'cover',...wrapStyle}"></div>
                    <div class="qrcode-describe f3">
                        关注公众号 <br>为您答疑解惑
                    </div>
                </div>
            </div>
        </div>
        <my-footer/>
    </div>

</template>

<script>
import myFooter from "@/components/footer.vue"

export default {
    name: "seven",
    props: ['phone', 'qrcode'],
    components: {
        myFooter
    },
    data() {
        return {
            search: {
                title: "",
                type: 0
            },
        }
    },
    methods: {
        jumpContactUs() {
            this.$router.push('/contactUs')
        }
    }
}
</script>

<style lang="less">
.consulting-box {
    height: 100%;
    position: relative;
    display: flex;
    align-content: space-between;
    flex-wrap: wrap;

    .consulting-input-group {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 150px;

        .consulting-input-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 70%;
            height: 60px;
        }

        .consulting-button {
            color: #FFFFFF;
            padding: 0;
            letter-spacing: 10px;
            cursor: pointer;
            width: 30%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .consulting-input-item {
            width: 30%;
            margin: 0 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;

            .consulting-input {
                width: 100%;
                height: 100%;
                border: 1px solid #757575;
                border-radius: 5px;

                input[type="text"] {
                    width: 100%;
                    height: 100%;
                    text-indent: 2rem;
                    border: none;
                    margin-left: 1%;
                    background: none;
                }

                select {
                    width: 99%;
                    padding-left: 20px;
                    height: 100%;
                    border: none;
                    outline: none;
                    background: none;
                }
            }


        }
    }
    .consulting-main-box {
		width: 100%;
        display: flex;
        align-items: center;
        background: #F3F3F3;
        color: #6A6A6A;
		height: 400px;
        height: calc(100% - 410px);

        .consulting-main-box-content {
            width: 1200px;
            height: 333px;
            display: flex;
            align-items: center;
			justify-content: space-around;
			margin: 0 auto;
        }

        .consulting-main-left-box {
            width: 60%;
            border-right: 2px solid #993C1A;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            .consulting-main-left-slogan{
                margin-top: 3%;
				font-size: 26px;
				font-family: Microsoft YaHei;
				font-weight: 400;
				line-height: 30px;
				margin-bottom: 3%;
            }
            .consulting-tag {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-around;
                width: 100%;
				font-size: 26px;
				font-family: Microsoft YaHei;
				font-weight: 400;
				line-height: 30px;
				margin-bottom: 3%;
				
                .tag-item {
                    width: 40%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;

                    .tag-btn {
                        color: #FFFFFF;
                        padding: 10px 22px;
						width: 80%;
                        cursor: pointer;
                    }

                    .tag-helper {
                        width: 100%;
                        text-align: center;
                        margin-top: 30px;
						font-size: 16px;
                    }
                }
            }
        }

        .consulting-main-right-box {
            width: 245px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            height: 100%;
            justify-content: space-between;

            .qrcode-describe {
                width: 245px;
                text-align: center;
            }

            .qrcode {
                width: 245px;
                height: 245px;
            }
        }
    }
}
</style>

